/**
 * com.cnhis.cloudhealth.emr.mapper.SysUserparameters.java
 */
package com.cnhis.cloudhealth.clinical.medical.base.mapper;

import com.cnhis.cloudhealth.commons.utils.BaseVO;

import javax.ws.rs.FormParam;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author 程少威
 * @version 0.1
 * @file SysUserparameters.java
 * @todo SysUserparameters数据值 Copyright(C), 2013-2014
 * Shenzhen Coordinates Software Development Co., Ltd.
 * History
 * 1. Date: 2017-10-30 02:26:19
 * Author: 程少威
 * Modification: this file was created
 * 2. ...
 */
@XmlRootElement
public class MsysUserparameters extends BaseVO implements java.io.Serializable {

    @FormParam("id")
    private String id;
    @FormParam("userid")
    private Long userid;
    @FormParam("paramid")
    private Long paramid;
    @FormParam("value")
    private String value;

    public MsysUserparameters() {
    }

    public MsysUserparameters(
            String id
    ) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String value) {
        this.id = value;
    }

    public Long getUserid() {
        return this.userid;
    }

    public void setUserid(Long value) {
        this.userid = value;
    }

    public Long getParamid() {
        return this.paramid;
    }

    public void setParamid(Long value) {
        this.paramid = value;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
        buffer.append("Id").append("='").append(getId()).append("' ");
        buffer.append("Userid").append("='").append(getUserid()).append("' ");
        buffer.append("Paramid").append("='").append(getParamid()).append("' ");
        buffer.append("Value").append("='").append(getValue()).append("' ");
        buffer.append("]");
        return buffer.toString();
    }

    public boolean equals(Object other) {
        if ((this == other)) return true;
        if ((other == null)) return false;
        if (!(other instanceof MsysUserparameters)) return false;
        MsysUserparameters castOther = (MsysUserparameters) other;
        return
                ((this.getId() == castOther.getId()) || (this.getId() != null && castOther.getId() != null && this.getId().equals(castOther.getId())))
                        && ((this.getUserid() == castOther.getUserid()) || (this.getUserid() != null && castOther.getUserid() != null && this.getUserid().equals(castOther.getUserid())))
                        && ((this.getParamid() == castOther.getParamid()) || (this.getParamid() != null && castOther.getParamid() != null && this.getParamid().equals(castOther.getParamid())))
                        && ((this.getValue() == castOther.getValue()) || (this.getValue() != null && castOther.getValue() != null && this.getValue().equals(castOther.getValue())))
                ;
    }

    public int hashCode() {
        int result = 17;
        result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
        result = 37 * result + (getUserid() == null ? 0 : this.getUserid().hashCode());
        result = 37 * result + (getParamid() == null ? 0 : this.getParamid().hashCode());
        result = 37 * result + (getValue() == null ? 0 : this.getValue().hashCode());
        return result;
    }

}
